<?php
$site = $_GET['site'];
$url = $_GET['url'];
function getsubstr($str, $str_start, $str_end){
	$start = strpos($str, $str_start) + strlen($str_start);
	$end = strpos($str, $str_end, $start);
	return substr($str, $start, $end - $start);
}
$code = file_get_contents($url);
$code = iconv('gb2312', 'utf-8', $code);
$asx = 'http://www.zueiai.com' . getsubstr($code,'<param name="Filename" value="', '" valuetype="ref">');
$rel = file_get_contents($asx);
echo '地址：'. $asx ."<br />";
//echo $rel;
$matches = array();
preg_match_all('/<Ref href(.*)"(.*)"\/>/i', $rel, $matches, PREG_SET_ORDER);
foreach ($matches as $v)
{
	echo '<br /><a href="javascript:play(\''.$v[2].'\');">'.$v[2].'</a>';
}
?>